package com.tlxch.server.student.impl;

import com.tlxch.dto.SStudentdto;
import com.tlxch.dto.SupdatePwddto;
import com.tlxch.mapper.SStudentMapper;
import com.tlxch.pojo.SStudent;
import com.tlxch.server.student.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    SStudentMapper sStudentMapper;

    public SStudent slogin(SStudent student) {
        return sStudentMapper.findbysid(student.getsSid());
    }

    public void updateInfo(SStudentdto studentdto) {
        sStudentMapper.updateInfo(studentdto);
    }

    public SStudent getbysid(String getsSid) {
        return sStudentMapper.findbysid(getsSid);
    }

    public void updatePassword(SupdatePwddto student) {
        sStudentMapper.updateStuPassword(student);
    }
}
